package com.banggood.upms.bean.vo;


import lombok.*;
import org.springframework.util.CollectionUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * @author XuChuangFeng
 */
@Data
public class SystemModuleVo {

    private String code;

    private String name;

    private List<PermissionVo> permissionVos;

    public void addPermission(PermissionVo item) {
        if(CollectionUtils.isEmpty(this.permissionVos)) {
            this.permissionVos = new ArrayList<>();
        }
        this.permissionVos.add(item);
    }
}
